﻿using System.Windows.Forms;
using NotWindowsStoreClient.Lib;

namespace NotWindowsStoreClient
{
    public partial class MainForm : Form
    {
        private readonly WindowsStoreClientService _service;

        public MainForm()
        {
            InitializeComponent();
            _service = new WindowsStoreClientService();
            _service.Start();
        }

        private void exitToolStripMenuItem_Click(object sender, System.EventArgs e)
        {
            Close();
        }

        private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            _service.Stop();
        }
    }
}
